package com.ithome.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sandu
 * @since 2020-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Talk implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "tId", type = IdType.AUTO)
    private Integer tId;

    /**
     * 生产方
     */
    @TableField("tFrom")
    private String tFrom;

    /**
     * 消费方
     */
    @TableField("toBody")
    private String toBody;

    /**
     * 用户状态
     */
    @TableField("tStatus")
    private Integer tStatus;

    /**
     * 发送时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;


}
